package com.cetc39.service.impl;

import java.util.List;

import com.cetc39.bean.NodeCheckRecord;
import com.cetc39.dao.NodeCheckRecordDao;
import com.cetc39.service.NodeCheckRecordService;

public class NodeCheckRecordServiceImpl implements NodeCheckRecordService {

	private NodeCheckRecordDao nodeCheckRecordDao;

	@Override
	public void save(NodeCheckRecord record) {
		nodeCheckRecordDao.save(record);
	}

	@Override
	public void delete(int id) {
		nodeCheckRecordDao.delete(id);
	}

	@Override
	public void update(NodeCheckRecord record) {
		nodeCheckRecordDao.update(record);
	}

	@Override
	public NodeCheckRecord findById(int id) {
		NodeCheckRecord record = nodeCheckRecordDao.findById(id);
		return record;
	}

	@Override
	public List<?> findByNodeId(int nodeId) {
		List<?> records = nodeCheckRecordDao.findByNodeId(nodeId);
		return records;
	}

	public void setNodeCheckRecordDao(NodeCheckRecordDao nodeCheckRecordDao) {
		this.nodeCheckRecordDao = nodeCheckRecordDao;
	}

	@Override
	public List<?> findByNodeIdAndReleased(int nodeId, int released) {
		List<?> records = nodeCheckRecordDao.findByNodeIdAndReleased(nodeId, released);
		return records;
	}


	
}
